package com.supreme.stockserver.service.remote;

import com.supreme.common.constant.ServiceConst;
import com.supreme.common.dto.UpdateGoodsStockDTO;
import com.supreme.commonboot.utils.AjaxResp;
import com.supreme.commonentity.mysql.primary.BizQuality;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(value = ServiceConst.BIZ_ORDER_NAME, contextId = "feign-api")
public interface FeignApiService {

    @PostMapping(value = "/api/quality_feign/create")
//    @RequestLine(value = "POST /api/quality_feign/create")
    BizQuality createQuality(BizQuality quality);

    @PutMapping(value = "/api/stock_feign/stocks")
//    @RequestLine(value = "PUT /api/stock_feign/stocks")
    AjaxResp updateGoodsStock(UpdateGoodsStockDTO updateGoodsStockDTO);
}
